package order

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/common/utils"
	"time"
)

type GfyxOrderRepoIface interface {
	SaveOrder(ctx context.Context, data *GfyxOrderPo) (*GfyxOrderPo, error)
	UpdateOrderByCondition(ctx context.Context, condition, updates map[string]interface{}) error
	QueryOrderById(ctx context.Context, id int64) (*GfyxOrderPo, error)
	QueryOrderList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*GfyxOrderPo, error)
	GetUsedExportNumByTime(ctx context.Context, sinceTime time.Time) (int32, error)
}
